import axiosInstance from '@/utils/axiosInstance';

const menuApi = {
  list: () => {
    return axiosInstance.get('/ui/menu/list');
  },
  add: data => {
    return axiosInstance.post('ui/menu/add', data);
  },
  update: data => {
    return axiosInstance.post('ui/menu/update', data);
  },
  delete: id => {
    return axiosInstance.patch('ui/menu/delete', id);
  }
};

export default menuApi;
